package com.group.itms.routes.json;


public abstract class ServiceInfo {
       
        public static ServiceInfo getInstance() {
                return new DefaultServiceInfo();
        }
       
        public abstract String getProtocol();
       
        public abstract String getHost();
       
        public abstract int getPort();
       
        public abstract String getResourceUrl();
       
        public abstract String getPassword();
       
        static class DefaultServiceInfo extends ServiceInfo {

                @Override
                public String getProtocol() {
                        return "http";
                }
                
                @Override
                public String getHost() {
                        return "traces.iliauni.edu.ge";
                }

                @Override
                public int getPort() {
                        return 80;
                }

                @Override
                public String getResourceUrl() {
                        return "api/list.php";
                }
               
                @Override
                public String getPassword() {
                        return "";
                }
               
        }
}

